package com.rf.richfitwheel.admin.sys.dao;

import com.rf.richfitwheel.admin.sys.model.SysMsgDef;
import com.rf.richfitwheel.admin.sys.model.SysMsgDefExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SysMsgDefMapper {
    long countByExample(SysMsgDefExample example);

    int deleteByExample(SysMsgDefExample example);

    int deleteByPrimaryKey(String id);

    int insert(SysMsgDef record);

    int insertSelective(SysMsgDef record);

    List<SysMsgDef> selectByExample(SysMsgDefExample example);

    SysMsgDef selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") SysMsgDef record, @Param("example") SysMsgDefExample example);

    int updateByExample(@Param("record") SysMsgDef record, @Param("example") SysMsgDefExample example);

    int updateByPrimaryKeySelective(SysMsgDef record);

    int updateByPrimaryKey(SysMsgDef record);

    SysMsgDef pageInfo(String id);

    /**
     * 根据编号获取消息规则信息
     * @param code
     * @return
     */
	SysMsgDef selectSysMsgDefByCode(String code);
}